//---------------------------------------------------------------------------

#ifndef EditProdFormH
#define EditProdFormH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <DBGrids.hpp>
#include <ExtCtrls.hpp>
#include <Grids.hpp>
#include <DB.hpp>
#include <DBCtrls.hpp>
#include <IBCustomDataSet.hpp>
#include <IBTable.hpp>
#include <Mask.hpp>
#include <Buttons.hpp>
#include <AppEvnts.hpp>
#include "class_TabCtrl.h"
#include <IBQuery.hpp>
//---------------------------------------------------------------------------
class TFEdProd : public TForm
{
__published:	// IDE-managed Components
        TPanel *Panel1;
        TDBGrid *DBGrid1;
        TDBGrid *DBGrid2;
        TPanel *Panel2;
        TPanel *Panel3;
        TDataSource *DataSource1;
        TDataSource *DataSource2;
        TIBTable *IBTable1;
        TIBTable *IBTable2;
        TIntegerField *IBTable1IDCAT;
        TIBStringField *IBTable1NAME;
        TIntegerField *IBTable2IDPRODUCT;
        TIBStringField *IBTable2NAME;
        TIBStringField *IBTable2ART;
        TIntegerField *IBTable2PRICE;
        TIntegerField *IBTable2SELLPRICE;
        TIntegerField *IBTable2IDCAT;
        TLabel *Label1;
        TLabel *Label2;
        TLabel *Label3;
        TLabel *Label4;
        TLabel *Label6;
        TDBEdit *DBEdit1;
        TDBEdit *DBEdit2;
        TDBEdit *DBEdit4;
        TDBEdit *DBEdit5;
        TDBEdit *DBEdit6;
        TBitBtn *BitBtn1;
        TPanel *Panel4;
        TComboBox *ComboBox1;
        TLabel *Label7;
        TBitBtn *BitBtn2;
        TApplicationEvents *ApplicationEvents1;
        TBitBtn *BitBtn3;
        TBitBtn *BitBtn4;
        TIBQuery *Ask;
        TLabel *Label8;
        TDBLookupComboBox *DBLookupComboBox1;
        TDataSource *DataSource3;
        TIBQuery *IBQuery1;
        TBitBtn *BitBtn5;
        TIBBCDField *IBTable2CNT;
        TDBEdit *DBEdit3;
        TLabel *Label5;
        TIBQuery *qAsk;
        void __fastcall FormCreate(TObject *Sender);
        void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
        void __fastcall ComboBox1Change(TObject *Sender);
        void __fastcall ApplicationEvents1Message(tagMSG &Msg,
          bool &Handled);
        void __fastcall BitBtn2Click(TObject *Sender);
        void __fastcall ComboBox1KeyPress(TObject *Sender, char &Key);
        void __fastcall DBGrid2KeyPress(TObject *Sender, char &Key);
        void __fastcall DBEdit1KeyPress(TObject *Sender, char &Key);
        void __fastcall DBEdit4KeyPress(TObject *Sender, char &Key);
        void __fastcall DBEdit2KeyPress(TObject *Sender, char &Key);
        void __fastcall DBEdit5KeyPress(TObject *Sender, char &Key);
        void __fastcall DBEdit3KeyPress(TObject *Sender, char &Key);
        void __fastcall DBEdit6KeyPress(TObject *Sender, char &Key);
        void __fastcall BitBtn3Click(TObject *Sender);
        void __fastcall BitBtn4Click(TObject *Sender);
        void __fastcall BitBtn5Click(TObject *Sender);
        void __fastcall FormMouseWheel(TObject *Sender, TShiftState Shift,
          int WheelDelta, TPoint &MousePos, bool &Handled);
private:	// User declarations
        TTabCtrl *Disp;        
public:		// User declarations
        __fastcall TFEdProd(TComponent* Owner);
        void __fastcall OpenData();
};
//---------------------------------------------------------------------------
extern PACKAGE TFEdProd *FEdProd;
//---------------------------------------------------------------------------
#endif
